package com.flower.enjoyment.flower.service.impl;

import com.flower.enjoyment.flower.entityDo.SysBannerDo;
import com.flower.enjoyment.flower.mapper.SysBannerMapper;
import com.flower.enjoyment.flower.service.SysBannerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class SysBannerServiceImpl implements SysBannerService {

    @Autowired
    private SysBannerMapper sysBannerMapper;

    /**
     * 首页获取banner列表
     *
     * @return
     */
    @Override
    public List<SysBannerDo> getBannerList(int bannerType) {
        return sysBannerMapper.getBannerList(bannerType);
    }

    /**
     * 获取分享人赠送金额信息
     *
     * @return
     */
    @Override
    public SysBannerDo getShareInfo() {
        return sysBannerMapper.getShareInfo();
    }
}
